﻿using System.Web.Mvc;

namespace StudentInfo.Areas.StudentArea
{
    public class StudentAreaAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "StudentArea";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Student",
                "StudentArea/Student/{action}/{id}",
                new { controller = "Student", action = "Index", id = UrlParameter.Optional }
            );
            
            context.MapRoute(
               "Exam",
               "StudentArea/Exam/{action}/{id}",
               new { controller = "Exam", action = "Index", id = UrlParameter.Optional }
           );
           
            context.MapRoute(
               "Mark",
               "StudentArea/Mark/{action}/{id}",
               new { controller = "Mark", action = "Index", id = UrlParameter.Optional }
           );
        }
    }
}
